package com.hy.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Formula {
    private Integer forward;
    private Integer behind;
    private char symbol;
    private Integer answer;

    /**
     * 输出算式
     * @return
     */
    public String toFormula() {
        return forward+" "+symbol+" "+behind+" = "+answer;
    }
}
